#include <QApplication>
#include "postwidgetelement.h"

PostWidgetElement::PostWidgetElement(int id, const QRect& r, const QString& text) :
		m_text(text), m_rect(r), m_id(id)
{
	m_font = qApp->font();
}

PostWidgetElement::~PostWidgetElement()
{
}

int PostWidgetElement::id()
{
	return m_id;
}

void PostWidgetElement::setText(const QString& t)
{
	m_text = t;
}

QString PostWidgetElement::text() const
{
	return m_text;
}

void PostWidgetElement::setNormalColor(const QColor& c)
{
	m_normal = c;
}

QColor PostWidgetElement::normalColor() const
{
	return m_normal;
}

void PostWidgetElement::setHoverColor(const QColor& c)
{
	m_hover = c;
}

QColor PostWidgetElement::hoverColor() const
{
	return m_hover;
}

void PostWidgetElement::setRect(const QRect& r)
{
	m_rect = r;
}

QRect PostWidgetElement::rect() const
{
	return m_rect;
}

void PostWidgetElement::setPixmap(const QPixmap& p)
{
	m_pixmap = p;
}

QPixmap PostWidgetElement::pixmap() const
{
	return m_pixmap;
}

void PostWidgetElement::setFont(const QFont& f)
{
	m_font = f;
}

QFont PostWidgetElement::font() const
{
	return m_font;
}

void PostWidgetElement::setTooltip(const QString& t)
{
	m_tooltip = t;
}

QString PostWidgetElement::tooltip() const
{
	return m_tooltip;
}
